package com.ruoyi.lhb.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.lhb.mapper.ReportMapper;
import com.ruoyi.lhb.domain.Report;
import com.ruoyi.lhb.service.IReportService;

import javax.annotation.Resource;

/**
 * 核酸检测报告Service业务层处理
 * 
 * @author lhb
 * @date 2022-09-22
 */
@Service
public class ReportServiceImpl implements IReportService
{
    @Resource
    private ReportMapper reportMapper;

    /**
     * 查询核酸检测报告
     * 
     * @param rid 核酸检测报告主键
     * @return 核酸检测报告
     */
    @Override
    public Report selectReportByRid(Long rid)
    {
        return reportMapper.selectReportByRid(rid);
    }

    /**
     * 查询核酸检测报告列表
     * 
     * @param report 核酸检测报告
     * @return 核酸检测报告
     */
    @Override
    public List<Report> selectReportList(Report report)
    {
        return reportMapper.selectReportList(report);
    }

    /**
     * 新增核酸检测报告
     * 
     * @param report 核酸检测报告
     * @return 结果
     */
    @Override
    public int insertReport(Report report)
    {
        return reportMapper.insertReport(report);
    }

    /**
     * 修改核酸检测报告
     * 
     * @param report 核酸检测报告
     * @return 结果
     */
    @Override
    public int updateReport(Report report)
    {
        return reportMapper.updateReport(report);
    }

    /**
     * 批量删除核酸检测报告
     * 
     * @param rids 需要删除的核酸检测报告主键
     * @return 结果
     */
    @Override
    public int deleteReportByRids(Long[] rids)
    {
        return reportMapper.deleteReportByRids(rids);
    }

    /**
     * 删除核酸检测报告信息
     * 
     * @param rid 核酸检测报告主键
     * @return 结果
     */
    @Override
    public int deleteReportByRid(Long rid)
    {
        return reportMapper.deleteReportByRid(rid);
    }

}
